Spaces:
Running
on
Zero
Running
on
Zero
import gradio as gr | |
from mysite.libs.utilities import process_file, no_process_file | |
from mysite.models.ride import Ride | |
from mysite.db.db import create_ride, read_rides, read_ride, update_ride, delete_ride | |
gr_interface = gr.Interface( | |
fn=process_file, | |
inputs=[ | |
"file", | |
gr.Textbox(label="Additional Notes", lines=10), | |
gr.Textbox(label="Folder Name"), | |
], | |
outputs="text", | |
) | |
if __name__ == "__main__": | |
gr_interface.launch() |