Spaces:
Build error
Build error
Commit
·
f532931
1
Parent(s):
3b91bd5
Update app.py
Browse files
app.py
CHANGED
@@ -18,9 +18,13 @@ def chatgpt(content, temperature=0.8):
|
|
18 |
return response.choices[0].message.content
|
19 |
|
20 |
if __name__ == "__main__":
|
|
|
21 |
def send_chatgpt(text):
|
22 |
output = chatgpt(text,0.8)
|
23 |
return output
|
24 |
|
25 |
-
interface = gr.Interface(fn=send_chatgpt,
|
|
|
|
|
|
|
26 |
interface.launch()
|
|
|
18 |
return response.choices[0].message.content
|
19 |
|
20 |
if __name__ == "__main__":
|
21 |
+
|
22 |
def send_chatgpt(text):
|
23 |
output = chatgpt(text,0.8)
|
24 |
return output
|
25 |
|
26 |
+
interface = gr.Interface(fn=send_chatgpt,
|
27 |
+
|
28 |
+
inputs=gr.Textbox(lines=2, placeholder="Name Here..."),
|
29 |
+
outputs="text")
|
30 |
interface.launch()
|