WarTitan2077 commited on
Commit
2fcf7ba
·
verified ·
1 Parent(s): d229aae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -23,7 +23,6 @@ def classify_numbers(input1, input2, input3):
23
  results[name] = {}
24
  return results
25
 
26
- # ✅ This creates /predict endpoint usable by Unity
27
  demo = gr.Interface(
28
  fn=classify_numbers,
29
  inputs=[
@@ -32,12 +31,7 @@ demo = gr.Interface(
32
  gr.Textbox(label="Input 3")
33
  ],
34
  outputs=gr.JSON(label="Predictions"),
35
- title="Number Classifier",
36
- description="Enter up to three inputs to classify them as Symbolic, Numeric, Prime, etc.",
37
- allow_flagging="never",
38
- examples=None,
39
- cache_examples=False,
40
- api_name="/predict" # ✅ This exposes /predict endpoint
41
  )
42
 
43
  if __name__ == "__main__":
 
23
  results[name] = {}
24
  return results
25
 
 
26
  demo = gr.Interface(
27
  fn=classify_numbers,
28
  inputs=[
 
31
  gr.Textbox(label="Input 3")
32
  ],
33
  outputs=gr.JSON(label="Predictions"),
34
+ api_name="/predict" # ✅ This is REQUIRED for Unity access!
 
 
 
 
 
35
  )
36
 
37
  if __name__ == "__main__":