CUBOID2010 commited on
Commit
c191f16
1 Parent(s): 93a7ad2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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://бекенд.понос.орг.рус/sdxl", json={"prompt": text})
6
  print(response.text)
7
- return gr.Image(response.text)
8
 
9
- iface = gr.Interface(fn=ask_ai, inputs=gr.Textbox(lines=2, placeholder="Red sport car.."), outputs="image")
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)