Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,9 @@
|
|
34 |
|
35 |
# # Add button to display a random poem
|
36 |
# demo.launch(share=True)
|
37 |
-
|
|
|
|
|
38 |
# Download model and tokenizer from HF
|
39 |
model_path = hf_hub_download("rahul7star/hindi_poetry_language_model", filename="model.pkl")
|
40 |
#tokenizer_path = hf_hub_download("rahul7star/Rahul-FineTunedLLM-v03", filename="tokenizer/tokenizer.pkl")
|
|
|
34 |
|
35 |
# # Add button to display a random poem
|
36 |
# demo.launch(share=True)
|
37 |
+
import gradio as gr
|
38 |
+
from fastai.text.all import load_learner
|
39 |
+
from huggingface_hub import hf_hub_download
|
40 |
# Download model and tokenizer from HF
|
41 |
model_path = hf_hub_download("rahul7star/hindi_poetry_language_model", filename="model.pkl")
|
42 |
#tokenizer_path = hf_hub_download("rahul7star/Rahul-FineTunedLLM-v03", filename="tokenizer/tokenizer.pkl")
|