QL2023 commited on
Commit
f32479d
·
verified ·
1 Parent(s): 271105e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,5 +1,8 @@
1
  import requests
2
  import gradio as gr
 
 
 
3
 
4
  thread = 0
5
 
@@ -7,7 +10,7 @@ def chat_history(message,history):
7
 
8
  global thread
9
 
10
- response = requests.post("https://chat-csv-assistant.azurewebsites.net/api/func_generate", json={
11
  "query":message,
12
  "thread": thread,
13
  }).json()
 
1
  import requests
2
  import gradio as gr
3
+ import os
4
+
5
+ address = os.getenv("address")
6
 
7
  thread = 0
8
 
 
10
 
11
  global thread
12
 
13
+ response = requests.post(address, json={
14
  "query":message,
15
  "thread": thread,
16
  }).json()