NicolasSP90 commited on
Commit
0788d03
1 Parent(s): e9c9636

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -13
app.py CHANGED
@@ -146,21 +146,10 @@ def correct_bases(base_dict, given_base):
146
  # Returning the corrected Dictionary
147
  return base_dict
148
 
149
- #%%
150
- b = 6
151
- n1 = 25
152
- n2 = 43
153
- base_, nsum_final_, nmult_final_, ndiff_final_= basecalc(b,n1,n2)
154
- print(f"Base: {base_}")
155
- print(f"Sum: {nsum_final_}")
156
- print(f"Multiplication: {nmult_final_}")
157
- print(f"Difference: {ndiff_final_}")
158
-
159
  # %%
160
  import gradio as gr
161
 
162
- calc = gr.Interface(fn=basecalc, inputs=[gr.Number(), gr.Slider(0,1000, gr.Slider(0,1000))], outputs=["text", "text", "text", "text"])
163
 
164
  if __name__ == "__main__":
165
- calc.launch()
166
-
 
146
  # Returning the corrected Dictionary
147
  return base_dict
148
 
 
 
 
 
 
 
 
 
 
 
149
  # %%
150
  import gradio as gr
151
 
152
+ calc = gr.Interface(fn=basecalc, inputs=[gr.Number(), gr.Number(), gr.Number()], outputs=["text", "text", "text", "text"])
153
 
154
  if __name__ == "__main__":
155
+ calc.launch()