Spaces:
Sleeping
Sleeping
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")) |