saritha commited on
Commit
5ef6a19
Β·
verified Β·
1 Parent(s): 843623c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -25
app.py CHANGED
@@ -27,32 +27,32 @@ def response_from_llam3(query):
27
  return response.choices[0].message.content
28
 
29
 
30
- iface = gr.Interface(
31
- gr.Markdown("<h1>πŸš€ Ayurveda Mate πŸ¦™</h1>")
32
- gr.Markdown("<h3> πŸ•ΉοΈ Type your questions or prompts below and see how each model responds to the same input πŸ‘Ύ </h3>")
33
- fn=response_from_llam3,
34
- inputs="text",
35
- outputs="text",
36
- examples=[
37
- ['What is importance of fasting according to Ayurveda?'],
38
- ['What are the medicinal values of Tusli?'],
39
- ['What are the three different doshas?'],
40
- ['What is the ideal diet according to ayurveda?']
41
- ],
42
- cache_examples=False,
43
- )
44
- iface.launch()
45
-
46
- # with gr.Blocks() as demo:
47
  # gr.Markdown("<h1>πŸš€ Ayurveda Mate πŸ¦™</h1>")
48
  # gr.Markdown("<h3> πŸ•ΉοΈ Type your questions or prompts below and see how each model responds to the same input πŸ‘Ύ </h3>")
49
- # with gr.Row():
50
- # input_text = gr.Textbox(label="Enter your prompt here:", placeholder="Type something...", lines=2)
51
- # submit_button = gr.Button("Submit")
52
- # output_llama = gr.Textbox(label="Llama 3 8B πŸ‘Ύ", placeholder="", lines=10, interactive=False)
53
- # output_mistral = gr.Textbox(label="Mistral 7B 🌠", placeholder="", lines=10, interactive=False)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
 
55
- # submit_button.click(fn=chat_with_models, inputs=input_text, outputs=[output_llama, output_mistral])
56
 
57
- # if __name__ == "__main__":
58
- # demo.launch()
 
27
  return response.choices[0].message.content
28
 
29
 
30
+ # iface = gr.Interface(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  # gr.Markdown("<h1>πŸš€ Ayurveda Mate πŸ¦™</h1>")
32
  # gr.Markdown("<h3> πŸ•ΉοΈ Type your questions or prompts below and see how each model responds to the same input πŸ‘Ύ </h3>")
33
+ # fn=response_from_llam3,
34
+ # inputs="text",
35
+ # outputs="text",
36
+ # examples=[
37
+ # ['What is importance of fasting according to Ayurveda?'],
38
+ # ['What are the medicinal values of Tusli?'],
39
+ # ['What are the three different doshas?'],
40
+ # ['What is the ideal diet according to ayurveda?']
41
+ # ],
42
+ # cache_examples=False,
43
+ # )
44
+ # iface.launch()
45
+
46
+ with gr.Blocks() as demo:
47
+ gr.Markdown("<h1>πŸš€ Ayurveda Mate πŸ¦™</h1>")
48
+ gr.Markdown("<h3> πŸ•ΉοΈ Type your questions or prompts below and see how each model responds to the same input πŸ‘Ύ </h3>")
49
+ with gr.Row():
50
+ input_text = gr.Textbox(label="Enter your prompt here:", placeholder="Type something...", lines=2)
51
+ submit_button = gr.Button("Submit")
52
+ output_llama = gr.Textbox(label="Llama 3 8B πŸ‘Ύ", placeholder="", lines=10, interactive=False)
53
+ output_mistral = gr.Textbox(label="Mistral 7B 🌠", placeholder="", lines=10, interactive=False)
54
 
55
+ submit_button.click(fn=response_from_llam3, inputs="text", outputs="text")
56
 
57
+ if __name__ == "__main__":
58
+ demo.launch()