ba / app.py
andriydovgal's picture
Update app.py
c25e3b1 verified
raw
history blame
682 Bytes
from openai import OpenAI
import gradio as gr
import json
from bot_actions import functions_dictionary
import os
def chatbot(input_text):
return input_text
iface = gr.Interface(fn=chatbot,
inputs=gr.components.Textbox(lines=5, label="Enter your text", show_copy_button=True),
outputs=gr.components.Textbox(lines=5, label="Answer", show_copy_button=True),
examples=["What are the different types of 'work product' lifespan? Provide detailed answer", "Хто може бути наставником?", "Question3", "Question4", "Question5"],
title="PMO Documents AI Chatbot")
iface.launch()