Spaces:
Runtime error
Runtime error
basic changes
Browse files
app.py
CHANGED
@@ -67,7 +67,6 @@ def GPT(input):
|
|
67 |
|
68 |
|
69 |
def generator(input=None):
|
70 |
-
return input
|
71 |
response = []
|
72 |
if input:
|
73 |
|
@@ -93,7 +92,7 @@ def generator(input=None):
|
|
93 |
out2 = pyjokes.get_joke(language='en', category='all')
|
94 |
if(out2):
|
95 |
response.append(out2)
|
96 |
-
|
97 |
return response[0] # think of doing this
|
98 |
|
99 |
iface = gr.Interface(fn=generator, inputs="text", outputs="text")
|
|
|
67 |
|
68 |
|
69 |
def generator(input=None):
|
|
|
70 |
response = []
|
71 |
if input:
|
72 |
|
|
|
92 |
out2 = pyjokes.get_joke(language='en', category='all')
|
93 |
if(out2):
|
94 |
response.append(out2)
|
95 |
+
|
96 |
return response[0] # think of doing this
|
97 |
|
98 |
iface = gr.Interface(fn=generator, inputs="text", outputs="text")
|