krisha06 commited on
Commit
f22b319
·
verified ·
1 Parent(s): 20879ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
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
- repo_name = "krisha06/Python_tutor" # Replace with your own username and repo name
8
- repo = Repository(local_dir="./tuned_model", clone_from=repo_name)
9
- repo.push_to_hub()
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")