Akshint47 commited on
Commit
2ba60bc
·
verified ·
1 Parent(s): b10aaf3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -26
app.py CHANGED
@@ -65,29 +65,3 @@ demo = gr.ChatInterface(get_text_response, examples=["How are you doing?","What
65
  if __name__ == "__main__":
66
  demo.launch() #To create a public link, set `share=True` in `launch()`. To enable errors and logs, set `debug=True` in `launch()`.
67
 
68
- """##**Publishing your code to Hugging Face**"""
69
-
70
- from huggingface_hub import notebook_login
71
-
72
- notebook_login()
73
-
74
- from huggingface_hub import HfApi
75
- api = HfApi()
76
-
77
- HUGGING_FACE_REPO_ID = "<Akshint47/MyGenAIChatBot>"
78
-
79
- """**Adding Secret Variables in Hugging Face Account:**
80
-
81
- - Open your Space
82
- - Click on Settings Button
83
- - Checkout to **Variables and secrets** section
84
- - Create New Secrets
85
-
86
- *Note*: Make sure to add your **OPENAI_API_KEY** in Secret key
87
- """
88
-
89
- # Commented out IPython magic to ensure Python compatibility.
90
- # %mkdir /content/ChatBotWithOpenAI
91
- !wget -P /content/ChatBotWithOpenAI/ https://s3.ap-south-1.amazonaws.com/cdn1.ccbp.in/GenAI-Workshop/ChatBotWithOpenAIAndLangChain/app.py
92
- !wget -P /content/ChatBotWithOpenAI/ https://s3.ap-south-1.amazonaws.com/cdn1.ccbp.in/GenAI-Workshop/ChatBotWithOpenAIAndLangChain/requirements.txt
93
-
 
65
  if __name__ == "__main__":
66
  demo.launch() #To create a public link, set `share=True` in `launch()`. To enable errors and logs, set `debug=True` in `launch()`.
67