Spaces:
Sleeping
Sleeping
gen_text
Browse files
app.py
CHANGED
@@ -36,7 +36,9 @@ def get_completion(prompt):
|
|
36 |
|
37 |
def greet(input):
|
38 |
response = get_completion(input)
|
39 |
-
|
|
|
|
|
40 |
|
41 |
iface = gr.Interface(fn=greet, inputs=[gr.Textbox(label="Prompt", lines=3)], outputs="json")
|
42 |
iface.launch()
|
|
|
36 |
|
37 |
def greet(input):
|
38 |
response = get_completion(input)
|
39 |
+
gen_text = response.[0].generated_text
|
40 |
+
return gen_text
|
41 |
+
#return json.dumps(response)
|
42 |
|
43 |
iface = gr.Interface(fn=greet, inputs=[gr.Textbox(label="Prompt", lines=3)], outputs="json")
|
44 |
iface.launch()
|