ccm commited on
Commit
6d76826
·
1 Parent(s): 5205c26

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,7 +19,7 @@ with gradio.Blocks() as demo:
19
  synthesize_it = gradio.Button("Synthesize")
20
 
21
  numpy.fromstring(flattened_curves[0].tostring(), dtype=float)
22
- analyze_it.click(fn=lambda x: analysis_network.predict(numpy.fromstring(x, dtype=float)).tostring()), inputs=[geometry], outputs=[spectrum], api_name="analyze")
23
- synthesize_it.click(fn=lambda x: synthesis_network.predict(numpy.fromstring(x, dtype=int)).tostring()), inputs=[spectrum], outputs=[geometry], api_name="synthesize")
24
 
25
  demo.launch()
 
19
  synthesize_it = gradio.Button("Synthesize")
20
 
21
  numpy.fromstring(flattened_curves[0].tostring(), dtype=float)
22
+ analyze_it.click(fn=lambda x: analysis_network.predict(numpy.fromstring(x, dtype=float)).tostring(), inputs=[geometry], outputs=[spectrum], api_name="analyze")
23
+ synthesize_it.click(fn=lambda x: synthesis_network.predict(numpy.fromstring(x, dtype=int)).tostring(), inputs=[spectrum], outputs=[geometry], api_name="synthesize")
24
 
25
  demo.launch()