File size: 682 Bytes
528e8ec
 
 
 
 
7f17eb9
c25e3b1
 
528e8ec
 
c25e3b1
 
 
 
 
528e8ec
c25e3b1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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()