aaryan3781 commited on
Commit
b0cb341
·
1 Parent(s): aab6ee6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -128,7 +128,7 @@ def llm_route(llm):
128
 
129
 
130
  # Define your functions here
131
- def gpt4(input_text,one_shot_example,llm):
132
  if llm=="GPT-4":
133
  model = AzureChatOpenAI(
134
  openai_api_base=BASE_URL,
@@ -320,7 +320,7 @@ llm_dropdown=["GPT-4","llama-2-7b","llama-2-13b","Vicuna-13b"]
320
  # iface1 = gr.Interface(gpt4, inputs="text", outputs="text")
321
  #iface2 = gr.Interface(gpt4, inputs=["text", "text"], outputs="text")
322
  iface2 = gr.Interface(
323
- function3,
324
  inputs=[
325
  gr.Textbox(label="Input Text"),
326
  gr.Textbox(label="One Shot Example"),
 
128
 
129
 
130
  # Define your functions here
131
+ def function2(input_text,one_shot_example,llm):
132
  if llm=="GPT-4":
133
  model = AzureChatOpenAI(
134
  openai_api_base=BASE_URL,
 
320
  # iface1 = gr.Interface(gpt4, inputs="text", outputs="text")
321
  #iface2 = gr.Interface(gpt4, inputs=["text", "text"], outputs="text")
322
  iface2 = gr.Interface(
323
+ function2,
324
  inputs=[
325
  gr.Textbox(label="Input Text"),
326
  gr.Textbox(label="One Shot Example"),