private-qa / app.py
umair894's picture
Update app.py
069ca00
raw
history blame
450 Bytes
import gradio as gr
from openai import OpenAI
import json
import os
def process_input(text, number):
# You can perform any processing or computation here
# For simplicity, this example just combines the inputs into a dictionary
result = {'input_text': text, 'input_number': number}
return result
iface = gr.Interface(
fn=process_input,
inputs=["text", "number"],
outputs="json"
)
iface.launch(auth=("admin", "pass1234"))