saritha commited on
Commit
f2d54d3
β€’
1 Parent(s): 68a1f31

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +26 -26
app.py CHANGED
@@ -25,34 +25,34 @@ def response_from_llam3(query):
25
 
26
  )
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()
 
25
 
26
  )
27
  return response.choices[0].message.content
28
+ gr.Markdown("<h1>πŸš€ Ayurveda Mate πŸ¦™</h1>")
29
+ gr.Markdown("<h3> πŸ•ΉοΈ Type your questions or prompts below and see how each model responds to the same input πŸ‘Ύ </h3>")
30
 
31
+ iface = gr.Interface(
32
+
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()