Spaces:
Sleeping
Sleeping
File size: 893 Bytes
3745377 80c147a ee1aad0 6c9f9b3 fee4a07 273daa5 36694ba 273daa5 36694ba efec88a 5e8528a 810511d 5e8528a 5d36f58 5e8528a 056ffbf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
import subprocess
subprocess.check_call(["pip", "install", "--upgrade", "gradio"])
subprocess.check_call(["pip", "install", "-q", "transformers", "python-dotenv"])
subprocess.check_call(["pip", "install", "-q", "openai"])
import gradio as gr
from transformers import TFAutoModelForCausalLM, AutoTokenizer
import openai
from dotenv import load_dotenv
import os
title = "ChatSherman-2.0"
description = ("Due to the unavailability of an OpenAI key, this chatbot is currently not operational. "
"However, you may try using ChatSherman-1.0 at "
"https://huggingface.co/spaces/ShermanAI/ChatSherman for a similar conversational experience. "
"Thank you for your understanding")
def show_message():
return description
iface = gr.Interface(fn=show_message, inputs=[], outputs="text", title=title, description=description)
iface.launch(debug=True) |