Spaces:
Runtime error
Runtime error
Commit
·
3e32319
1
Parent(s):
7c2ab27
Update app.py
Browse files
app.py
CHANGED
@@ -3,13 +3,14 @@ import gradio as gr
|
|
3 |
import torch
|
4 |
|
5 |
|
6 |
-
title = "
|
7 |
-
description = "
|
8 |
-
examples = [["How
|
9 |
|
|
|
10 |
|
11 |
-
tokenizer = AutoTokenizer.from_pretrained(
|
12 |
-
model = AutoModelForCausalLM.from_pretrained(
|
13 |
|
14 |
|
15 |
def predict(input, history=[]):
|
|
|
3 |
import torch
|
4 |
|
5 |
|
6 |
+
title = "Ayurveda4U"
|
7 |
+
description = "LLM-Powered Medical Chatbot that will answer all your health-related queries with the help of Ayurvedic texts ynder the hood!"
|
8 |
+
examples = [["How can you cure common cold using Ayurveda?"], ["What is the Ayurvedic equivalent of Paracetamol?"]]
|
9 |
|
10 |
+
model_path = 'microsoft/BioGPT-large' #microsoft/DialoGPT-large
|
11 |
|
12 |
+
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
13 |
+
model = AutoModelForCausalLM.from_pretrained(model_path)
|
14 |
|
15 |
|
16 |
def predict(input, history=[]):
|