Spaces:
Runtime error
Runtime error
CUBOID2010
commited on
Commit
•
c191f16
1
Parent(s):
93a7ad2
Update app.py
Browse files
app.py
CHANGED
@@ -2,9 +2,9 @@ import gradio as gr
|
|
2 |
import requests
|
3 |
|
4 |
def ask_ai(text):
|
5 |
-
response = requests.post("https://бекенд.понос.орг.рус/
|
6 |
print(response.text)
|
7 |
-
return
|
8 |
|
9 |
-
iface = gr.Interface(fn=ask_ai, inputs=gr.Textbox(lines=2, placeholder="
|
10 |
iface.launch(share=True)
|
|
|
2 |
import requests
|
3 |
|
4 |
def ask_ai(text):
|
5 |
+
response = requests.post("https://бекенд.понос.орг.рус/gpt3", json={"prompt": text})
|
6 |
print(response.text)
|
7 |
+
return response.text
|
8 |
|
9 |
+
iface = gr.Interface(fn=ask_ai, inputs=gr.Textbox(lines=2, placeholder="Write about Yan../Напиши про Яна..), outputs="text")
|
10 |
iface.launch(share=True)
|