Sephfox commited on
Commit
e1a12ee
·
verified ·
1 Parent(s): f1ce1c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -24
app.py CHANGED
@@ -374,34 +374,30 @@ with col2:
374
  st.write(f"Interaction Point: ({touch_x:.1f}, {touch_y:.1f})")
375
  st.write(f"Duration: {touch_duration:.1f} s | Intensity: {touch_pressure:.2f}")
376
 
377
- # Create a futuristic data display
378
- data_display = """
379
- +---------------------------------------------+
380
- | Pressure : {:.2f} |
381
- | Temperature : {:.2f}°C |
382
- | Texture : {} |
383
- | EM Field : {:.2f} μT |
384
- | Quantum State: {:.2f} |
385
- +---------------------------------------------+
386
- | Pain Level : {:.2f} |
387
- | Pleasure : {:.2f} |
388
- | Tickle : {:.2f} |
389
- | Itch : {:.2f} |
390
- | Proprioception: {:.2f} |
391
- | Synesthesia : {} |
392
- | Neural Response: {:.2f} |
393
- +---------------------------------------------+
394
-
395
-
396
- """.format(
397
- measured_pressure, measured_temp, measured_texture, measured_em, quantum_state,
398
- pain_level, pleasure_level, tickle_level, itch_level, proprioception,
399
- synesthesia, neural_response
400
  )
401
 
402
  st.code(data_display, language="")
403
 
404
-
405
  # Generate description
406
  prompt = f"""Human: Analyze the sensory input for a hyper-advanced AI humanoid:
407
  Location: ({touch_x:.1f}, {touch_y:.1f})
 
374
  st.write(f"Interaction Point: ({touch_x:.1f}, {touch_y:.1f})")
375
  st.write(f"Duration: {touch_duration:.1f} s | Intensity: {touch_pressure:.2f}")
376
 
377
+
378
+ # Create a futuristic data display
379
+ data_display = (
380
+ "```\n"
381
+ "+---------------------------------------------+\n"
382
+ "| Pressure : " + f"{measured_pressure:.2f}".ljust(23) + "|\n"
383
+ "| Temperature : " + f"{measured_temp:.2f}°C".ljust(23) + "|\n"
384
+ "| Texture : " + f"{measured_texture}".ljust(23) + "|\n"
385
+ "| EM Field : " + f"{measured_em:.2f} μT".ljust(23) + "|\n"
386
+ "| Quantum State: " + f"{quantum_state:.2f}".ljust(23) + "|\n"
387
+ "+---------------------------------------------+\n"
388
+ "| Pain Level : " + f"{pain_level:.2f}".ljust(23) + "|\n"
389
+ "| Pleasure : " + f"{pleasure_level:.2f}".ljust(23) + "|\n"
390
+ "| Tickle : " + f"{tickle_level:.2f}".ljust(23) + "|\n"
391
+ "| Itch : " + f"{itch_level:.2f}".ljust(23) + "|\n"
392
+ "| Proprioception: " + f"{proprioception:.2f}".ljust(22) + "|\n"
393
+ "| Synesthesia : " + f"{synesthesia}".ljust(23) + "|\n"
394
+ "| Neural Response: " + f"{neural_response:.2f}".ljust(21) + "|\n"
395
+ "+---------------------------------------------+\n"
396
+ "```"
 
 
 
397
  )
398
 
399
  st.code(data_display, language="")
400
 
 
401
  # Generate description
402
  prompt = f"""Human: Analyze the sensory input for a hyper-advanced AI humanoid:
403
  Location: ({touch_x:.1f}, {touch_y:.1f})