Update app.py
Browse files
app.py
CHANGED
@@ -1,47 +1,3 @@
|
|
1 |
-
Hugging Face's logo
|
2 |
-
Hugging Face
|
3 |
-
Models
|
4 |
-
Datasets
|
5 |
-
Spaces
|
6 |
-
Posts
|
7 |
-
Docs
|
8 |
-
Enterprise
|
9 |
-
Pricing
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
Spaces:
|
14 |
-
|
15 |
-
|
16 |
-
SalexAI
|
17 |
-
/
|
18 |
-
Elon-Ma
|
19 |
-
|
20 |
-
|
21 |
-
like
|
22 |
-
0
|
23 |
-
|
24 |
-
App
|
25 |
-
Files
|
26 |
-
Community
|
27 |
-
Settings
|
28 |
-
Elon-Ma
|
29 |
-
/
|
30 |
-
app.py
|
31 |
-
|
32 |
-
SalexAI's picture
|
33 |
-
SalexAI
|
34 |
-
Update app.py
|
35 |
-
53acedc
|
36 |
-
verified
|
37 |
-
about 3 hours ago
|
38 |
-
raw
|
39 |
-
|
40 |
-
Copy download link
|
41 |
-
history
|
42 |
-
blame
|
43 |
-
|
44 |
-
2.22 kB
|
45 |
import gradio as gr
|
46 |
from openai import OpenAI
|
47 |
import os
|
@@ -93,7 +49,7 @@ def respond(
|
|
93 |
response = ""
|
94 |
|
95 |
for message in client.chat.completions.create(
|
96 |
-
model="
|
97 |
max_tokens=max_tokens,
|
98 |
stream=True,
|
99 |
temperature=temperature,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
from openai import OpenAI
|
3 |
import os
|
|
|
49 |
response = ""
|
50 |
|
51 |
for message in client.chat.completions.create(
|
52 |
+
model="Qwen/Qwen2.5-72B-Instruct",
|
53 |
max_tokens=max_tokens,
|
54 |
stream=True,
|
55 |
temperature=temperature,
|