AEUPH commited on
Commit
e21f00d
·
1 Parent(s): e936bd0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -4,8 +4,9 @@ import requests
4
  def interact_with_server(prompt):
5
  server_url = "http://xzyorb.servemp3.com:80"
6
  response = requests.post(server_url, data={"prompt": prompt})
7
- response_text = response.text # Use .text to extract the response content
8
- print("Server response:", response_text) # Print the response for debugging
 
9
  return response_text
10
 
11
  iface = gr.Interface(
@@ -14,4 +15,4 @@ iface = gr.Interface(
14
  outputs=gr.outputs.HTML()
15
  )
16
 
17
- iface.launch()
 
4
  def interact_with_server(prompt):
5
  server_url = "http://xzyorb.servemp3.com:80"
6
  response = requests.post(server_url, data={"prompt": prompt})
7
+ response_text = response.text
8
+ print("Response status code:", response.status_code)
9
+ print("Response content:", response_text)
10
  return response_text
11
 
12
  iface = gr.Interface(
 
15
  outputs=gr.outputs.HTML()
16
  )
17
 
18
+ iface.launch()