anasmkh commited on
Commit
97c22f1
·
verified ·
1 Parent(s): 1e22681

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -67,8 +67,7 @@ def process_upload(files):
67
  chat_mode="context",
68
  memory=memory,
69
  system_prompt=(
70
- "You are an AI assistant who answers the user questions, "
71
- "use the schema fields to generate appropriate and valid json queries"
72
  ),
73
  )
74
 
@@ -103,7 +102,7 @@ def clear_history():
103
 
104
  def gradio_interface():
105
  with gr.Blocks() as demo:
106
- gr.Markdown("# Chat Interface for LlamaIndex with File Upload")
107
 
108
  with gr.Tab("Upload Documents"):
109
  gr.Markdown("Upload PDF, Excel, CSV, DOC/DOCX, or TXT files below:")
@@ -118,7 +117,7 @@ def gradio_interface():
118
  upload_button.click(process_upload, inputs=file_upload, outputs=upload_status)
119
 
120
  with gr.Tab("Chat"):
121
- chatbot = gr.Chatbot(label="LlamaIndex Chatbot")
122
  user_input = gr.Textbox(
123
  placeholder="Ask a question...", label="Enter your question"
124
  )
 
67
  chat_mode="context",
68
  memory=memory,
69
  system_prompt=(
70
+ "You are an AI assistant who answers the user questions,"
 
71
  ),
72
  )
73
 
 
102
 
103
  def gradio_interface():
104
  with gr.Blocks() as demo:
105
+ gr.Markdown("# AI Assistant")
106
 
107
  with gr.Tab("Upload Documents"):
108
  gr.Markdown("Upload PDF, Excel, CSV, DOC/DOCX, or TXT files below:")
 
117
  upload_button.click(process_upload, inputs=file_upload, outputs=upload_status)
118
 
119
  with gr.Tab("Chat"):
120
+ chatbot = gr.Chatbot(label="AI Assistant Chat Interface")
121
  user_input = gr.Textbox(
122
  placeholder="Ask a question...", label="Enter your question"
123
  )