Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
import subprocess
|
| 2 |
-
|
|
|
|
| 3 |
from transformers import TFAutoModelForCausalLM, AutoTokenizer
|
| 4 |
import openai
|
| 5 |
from dotenv import load_dotenv
|
|
@@ -19,7 +20,7 @@ def chatbot(talk_to_chatsherman, history=[]):
|
|
| 19 |
return history, history
|
| 20 |
|
| 21 |
title = "My Chatbot Title"
|
| 22 |
-
description = "This is
|
| 23 |
examples = [
|
| 24 |
["Hello, how are you?", []],
|
| 25 |
["What's the meaning of life?", []],
|
|
|
|
| 1 |
import subprocess
|
| 2 |
+
subprocess.check_call(["pip", "install", "-q", "openai"])
|
| 3 |
+
subprocess.check_call(["pip", "install", "-q", "gradio", "transformers", "python-dotenv"])import gradio as gr
|
| 4 |
from transformers import TFAutoModelForCausalLM, AutoTokenizer
|
| 5 |
import openai
|
| 6 |
from dotenv import load_dotenv
|
|
|
|
| 20 |
return history, history
|
| 21 |
|
| 22 |
title = "My Chatbot Title"
|
| 23 |
+
description = "This is an AI chatbot powered by ShermanAI using GPT-3 model."
|
| 24 |
examples = [
|
| 25 |
["Hello, how are you?", []],
|
| 26 |
["What's the meaning of life?", []],
|