Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import numpy as np
|
|
3 |
import gradio as gr
|
4 |
|
5 |
from transformers import AutoModelForMultipleChoice, AutoTokenizer
|
6 |
-
|
7 |
|
8 |
# Load the model and tokenizer
|
9 |
model_path = "/kaggle/input/deberta-v3-large-hf-weights"
|
@@ -46,6 +46,7 @@ iface = gr.Interface(
|
|
46 |
iface.launch(share=True)
|
47 |
|
48 |
# Once you have verified that the interface works as expected, proceed to create the Hugging Face space:
|
|
|
49 |
repo_url = hf_hub_url("your-username/your-repo-name")
|
50 |
repo = Repository.from_hf_hub(repo_url)
|
51 |
-
repo.push(path="./my_model", model=model, tokenizer=tokenizer, config=model.config)
|
|
|
3 |
import gradio as gr
|
4 |
|
5 |
from transformers import AutoModelForMultipleChoice, AutoTokenizer
|
6 |
+
|
7 |
|
8 |
# Load the model and tokenizer
|
9 |
model_path = "/kaggle/input/deberta-v3-large-hf-weights"
|
|
|
46 |
iface.launch(share=True)
|
47 |
|
48 |
# Once you have verified that the interface works as expected, proceed to create the Hugging Face space:
|
49 |
+
"""
|
50 |
repo_url = hf_hub_url("your-username/your-repo-name")
|
51 |
repo = Repository.from_hf_hub(repo_url)
|
52 |
+
repo.push(path="./my_model", model=model, tokenizer=tokenizer, config=model.config)"""
|