Spaces:
Sleeping
Sleeping
import gradio as gr | |
from interaction import LLMResource | |
""" | |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference | |
""" | |
# client = InferenceClient( | |
# "HuggingFaceH4/zephyr-7b-beta", | |
# token=os.environ["API_KEY"] | |
# ) | |
""" | |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface | |
""" | |
demo = gr.Interface( | |
LLMResource.invoke, | |
title="Vicky - Wikipedia Chatbot", | |
inputs=[gr.Textbox(label="Input Prompt", value="When was Oppenheimer released?")], | |
outputs=[gr.Textbox(label="Output")] | |
) | |
if __name__ == "__main__": | |
demo.launch() |