mimifuel2018 commited on
Commit
b589ee9
·
verified ·
1 Parent(s): 9d2e15c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -67,7 +67,7 @@ def model_chat(query: Optional[str], history: Optional[History], system: str) ->
67
  headers = {"Authorization": f"Bearer {os.getenv('HF_TOKEN')}"}
68
 
69
  try:
70
- response = requests.post(f"https://api-inference.huggingface.co/models/Qwen/Qwen2.5-7B-Instruct",
71
  json=payload, headers=headers)
72
 
73
  if response.status_code == 200:
@@ -97,7 +97,7 @@ def model_chat(query: Optional[str], history: Optional[History], system: str) ->
97
 
98
  # Gradio Interface Setup
99
  with gr.Blocks() as demo:
100
- gr.Markdown("<center><font size=8>Qwen2.5-7B-Instruct👾</center>")
101
 
102
  with gr.Row():
103
  with gr.Column(scale=3):
@@ -106,7 +106,7 @@ with gr.Blocks() as demo:
106
  modify_system = gr.Button("🛠️ Set system prompt and clear history", scale=2)
107
  system_state = gr.Textbox(value=default_system, visible=False)
108
 
109
- chatbot = gr.Chatbot(label='Qwen2.5-7B-Instruct')
110
  textbox = gr.Textbox(lines=1, label='Input')
111
 
112
  with gr.Row():
 
67
  headers = {"Authorization": f"Bearer {os.getenv('HF_TOKEN')}"}
68
 
69
  try:
70
+ response = requests.post(f"https://api-inference.huggingface.co/models/Qwen/Qwen2.5-32B-Instruct",
71
  json=payload, headers=headers)
72
 
73
  if response.status_code == 200:
 
97
 
98
  # Gradio Interface Setup
99
  with gr.Blocks() as demo:
100
+ gr.Markdown("<center><font size=8>Qwen2.5-32B-Instruct👾</center>")
101
 
102
  with gr.Row():
103
  with gr.Column(scale=3):
 
106
  modify_system = gr.Button("🛠️ Set system prompt and clear history", scale=2)
107
  system_state = gr.Textbox(value=default_system, visible=False)
108
 
109
+ chatbot = gr.Chatbot(label='Qwen2.5-32B-Instruct')
110
  textbox = gr.Textbox(lines=1, label='Input')
111
 
112
  with gr.Row():