Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,28 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
def greet(name):
|
| 4 |
-
return "Hello " + name + "!!"
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import pandas as pd
|
| 3 |
+
import numpy as np
|
| 4 |
|
|
|
|
|
|
|
| 5 |
|
| 6 |
+
def full_function(xml_file):
|
| 7 |
+
|
| 8 |
+
output_text = "yes"
|
| 9 |
+
return output_text
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
desc = "Upload XML file, convert to .csv file, and analyze transactions"
|
| 14 |
+
|
| 15 |
+
with gr.Blocks() as demo:
|
| 16 |
+
|
| 17 |
+
xml_file = gr.File(label = "Upload XML file here")
|
| 18 |
+
|
| 19 |
+
# input_employees = gr.CheckboxGroup(["Transfer Solutions", "Ordina", "PwC", "Quistor", "Full Orbit", "Accenture", "Atos", "AMIS"], label="Oracle Partners", info="Who to judge?")
|
| 20 |
+
# input_question = gr.Text(label="What activity is the Oracle Partner performing?")
|
| 21 |
+
# additional_info = gr.Text(label="Additional information (optional)")
|
| 22 |
+
output_text = gr.Text(label="R")
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
submit_btn = gr.Button("Run GenAI - Cohere in Oracle Cloud")
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
gr.Interface(fn=full_function, inputs=xml_file, outputs=output_text, title=desc).launch(share=True)
|