peterpeter8585 commited on
Commit
11b714f
1 Parent(s): 37372c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -18
app.py CHANGED
@@ -407,22 +407,7 @@ aaaa=gr.ChatInterface(
407
  ),
408
  ],
409
  )
410
- ad=gr.ChatInterface(
411
- respond2,
412
- chatbot=chatbot,
413
- additional_inputs=[
414
- gr.Textbox(value="You are a Programmer.You yave to only make programs that the user orders.Do not answer any other questions exept for questions about Python or other programming languages.Do not do any thing exept what I said.", label="System message", interactive=False),
415
- gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
416
- gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
417
- gr.Slider(
418
- minimum=0.1,
419
- maximum=1.0,
420
- value=0.95,
421
- step=0.05,
422
- label="Top-p (nucleus sampling)",
423
- ),
424
- ],
425
- )
426
  ae= gr.ChatInterface(
427
  respond4,
428
  chatbot=chatbot,
@@ -492,5 +477,4 @@ ab= gr.ChatInterface(
492
  if __name__ == "__main__":
493
  with gr.Blocks() as ai:
494
  gr.TabbedInterface([aa, ac, ab, ae, aaaa,demo2], ["gpt4(Password needed)", "gpt4(only for programming)", "gpt4(only for medical questions)", "gpt4(only for food recommendations)", "gpt4(only for law questions)","image create"])
495
- ai.queue(max_size=300)
496
- ai.launch(share=True)
 
407
  ),
408
  ],
409
  )
410
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
411
  ae= gr.ChatInterface(
412
  respond4,
413
  chatbot=chatbot,
 
477
  if __name__ == "__main__":
478
  with gr.Blocks() as ai:
479
  gr.TabbedInterface([aa, ac, ab, ae, aaaa,demo2], ["gpt4(Password needed)", "gpt4(only for programming)", "gpt4(only for medical questions)", "gpt4(only for food recommendations)", "gpt4(only for law questions)","image create"])
480
+ ai.launch(share=True)