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)