Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,11 +2,10 @@ import streamlit as st
|
|
| 2 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 3 |
from huggingface_hub import Repository
|
| 4 |
import os
|
| 5 |
-
from huggingface_hub import Repository
|
| 6 |
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
repo
|
| 10 |
|
| 11 |
# Streamlit App Title
|
| 12 |
st.title("AI Coding Mentor")
|
|
|
|
| 2 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 3 |
from huggingface_hub import Repository
|
| 4 |
import os
|
|
|
|
| 5 |
|
| 6 |
+
# Define model directory and Hugging Face repo name
|
| 7 |
+
model_dir = "./tuned_model" # Directory where the fine-tuned model is saved
|
| 8 |
+
repo_name = "krisha06/Python_tutor" # Replace with your Hugging Face repo name
|
| 9 |
|
| 10 |
# Streamlit App Title
|
| 11 |
st.title("AI Coding Mentor")
|