Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -304,23 +304,43 @@ with col2:
|
|
304 |
|
305 |
"""
|
306 |
st.code(data_display, language="")
|
307 |
-
#
|
308 |
-
|
309 |
-
Location: ({
|
310 |
-
Duration: {
|
311 |
-
Pressure: {
|
312 |
-
Temperature: {
|
313 |
Texture: {measured_texture}
|
314 |
-
EM Field: {
|
315 |
Quantum State: {quantum_state}
|
316 |
Resulting in:
|
317 |
-
Pain: {
|
318 |
-
Tickle: {
|
319 |
-
Proprioception: {
|
320 |
Synesthesia: {synesthesia}
|
321 |
-
Neural Response: {
|
322 |
Provide a detailed, scientific, and creative description of the AI humanoid's experience and response to this sensory input."""
|
323 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
324 |
# You can use this prompt to generate a response from your AI model
|
325 |
# For demonstration, let's create a mock AI response
|
326 |
ai_response = f"""Based on the complex sensory input received, the hyper-advanced AI humanoid is experiencing a multifaceted neural response:
|
|
|
304 |
|
305 |
"""
|
306 |
st.code(data_display, language="")
|
307 |
+
# First, create a template string with placeholders
|
308 |
+
prompt_template = """Human: Analyze the sensory input for a hyper-advanced AI humanoid:
|
309 |
+
Location: ({touch_x:.1f}, {touch_y:.1f})
|
310 |
+
Duration: {touch_duration:.1f}s, Intensity: {touch_pressure:.2f}
|
311 |
+
Pressure: {measured_pressure:.2f}
|
312 |
+
Temperature: {measured_temp:.2f}°C
|
313 |
Texture: {measured_texture}
|
314 |
+
EM Field: {measured_em:.2f} μT
|
315 |
Quantum State: {quantum_state}
|
316 |
Resulting in:
|
317 |
+
Pain: {pain_level:.2f}, Pleasure: {pleasure_level:.2f}
|
318 |
+
Tickle: {tickle_level:.2f}, Itch: {itch_level:.2f}
|
319 |
+
Proprioception: {proprioception:.2f}
|
320 |
Synesthesia: {synesthesia}
|
321 |
+
Neural Response: {neural_response:.2f}
|
322 |
Provide a detailed, scientific, and creative description of the AI humanoid's experience and response to this sensory input."""
|
323 |
|
324 |
+
# Then, use the format method to insert the values
|
325 |
+
prompt = prompt_template.format(
|
326 |
+
touch_x=touch_x,
|
327 |
+
touch_y=touch_y,
|
328 |
+
touch_duration=touch_duration,
|
329 |
+
touch_pressure=touch_pressure,
|
330 |
+
measured_pressure=measured_pressure,
|
331 |
+
measured_temp=measured_temp,
|
332 |
+
measured_texture=measured_texture,
|
333 |
+
measured_em=measured_em,
|
334 |
+
quantum_state=quantum_state,
|
335 |
+
pain_level=pain_level,
|
336 |
+
pleasure_level=pleasure_level,
|
337 |
+
tickle_level=tickle_level,
|
338 |
+
itch_level=itch_level,
|
339 |
+
proprioception=proprioception,
|
340 |
+
synesthesia=synesthesia,
|
341 |
+
neural_response=neural_response
|
342 |
+
)
|
343 |
+
|
344 |
# You can use this prompt to generate a response from your AI model
|
345 |
# For demonstration, let's create a mock AI response
|
346 |
ai_response = f"""Based on the complex sensory input received, the hyper-advanced AI humanoid is experiencing a multifaceted neural response:
|