luminoussg commited on
Commit
f863e48
·
verified ·
1 Parent(s): 7cbd468

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -11,6 +11,10 @@ from textbox_with_upload import TextboxWithUpload
11
  session_manager = SessionManager()
12
  HF_API_KEY = os.getenv("HF_API_KEY")
13
 
 
 
 
 
14
  # Model endpoints configuration
15
  MODEL_ENDPOINTS = {
16
  "Qwen2.5-72B-Instruct": "https://api-inference.huggingface.co/models/Qwen/Qwen2.5-72B-Instruct",
@@ -132,7 +136,6 @@ with gr.Blocks() as demo:
132
 
133
  chatbot = gr.Chatbot(height=600)
134
  msg = TextboxWithUpload(label="Message")
135
- msg.add_upload_button()
136
  save_history = gr.Checkbox(label="Save Conversation History", value=True)
137
 
138
  def on_new_session():
 
11
  session_manager = SessionManager()
12
  HF_API_KEY = os.getenv("HF_API_KEY")
13
 
14
+ # Check Gradio version
15
+ import gradio as gr
16
+ print(f"Gradio version: {gr.__version__}")
17
+
18
  # Model endpoints configuration
19
  MODEL_ENDPOINTS = {
20
  "Qwen2.5-72B-Instruct": "https://api-inference.huggingface.co/models/Qwen/Qwen2.5-72B-Instruct",
 
136
 
137
  chatbot = gr.Chatbot(height=600)
138
  msg = TextboxWithUpload(label="Message")
 
139
  save_history = gr.Checkbox(label="Save Conversation History", value=True)
140
 
141
  def on_new_session():