jozzy commited on
Commit
bd3d051
·
1 Parent(s): c9349a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -105,7 +105,7 @@ def roleChoice(role):
105
 
106
 
107
 
108
- def talk2file(index_name=amd, text):
109
  #disable the global message
110
  #global messages
111
  messages = []
@@ -204,9 +204,9 @@ with gr.Blocks() as pinecone_tools:
204
 
205
 
206
 
207
-
208
  role = gr.Interface(fn=roleChoice, inputs="text", outputs="text", description = "Choose your GPT roles, e.g. You are a helpful technology assistant.")
209
- text = gr.Interface(fn=talk2file, inputs=["text", "text"], outputs="html")
210
 
211
  vector_server = gr.Interface(fn=process_file, inputs=["text", gr.inputs.File(file_count="directory")], outputs="text")
212
 
 
105
 
106
 
107
 
108
+ def talk2file(index_name, text):
109
  #disable the global message
110
  #global messages
111
  messages = []
 
204
 
205
 
206
 
207
+ textbox = gr.inputs.Textbox(label="Vector Server Index Name: ", default="amd")
208
  role = gr.Interface(fn=roleChoice, inputs="text", outputs="text", description = "Choose your GPT roles, e.g. You are a helpful technology assistant.")
209
+ text = gr.Interface(fn=talk2file, inputs=[textbox, "text"], outputs="html")
210
 
211
  vector_server = gr.Interface(fn=process_file, inputs=["text", gr.inputs.File(file_count="directory")], outputs="text")
212