Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ DISCORD_TOKEN = os.getenv("DISCORD_TOKEN")
|
|
20 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
21 |
def ask(input_text):
|
22 |
client = Client("https://wop-xxx-opengpt.hf.space/")
|
23 |
-
result = client.predict(input_text, 0.9, 2000, 0.9, 1.2, api_name="/chat")
|
24 |
#result = result[:-4]
|
25 |
return result
|
26 |
|
|
|
20 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
21 |
def ask(input_text):
|
22 |
client = Client("https://wop-xxx-opengpt.hf.space/")
|
23 |
+
result = await client.predict(input_text, 0.9, 2000, 0.9, 1.2, api_name="/chat")
|
24 |
#result = result[:-4]
|
25 |
return result
|
26 |
|